projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bb7b39
)
acm: Return a valid buffer
author
Keir Fraser
<keir.fraser@citrix.com>
Mon, 2 Mar 2009 10:31:16 +0000
(10:31 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Mon, 2 Mar 2009 10:31:16 +0000
(10:31 +0000)
This patch reverts a previous patch trying to fix a memory, even
though I don't think there was any. Now return a valid buffer. All
functions calling this function do free the buffer.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/python/xen/lowlevel/acm/acm.c
patch
|
blob
|
history
diff --git
a/tools/python/xen/lowlevel/acm/acm.c
b/tools/python/xen/lowlevel/acm/acm.c
index d426420d703fbd1c468595070542428e6ec03147..662c7f72d4407282bea04bea2c0c7910cd43432e 100644
(file)
--- a/
tools/python/xen/lowlevel/acm/acm.c
+++ b/
tools/python/xen/lowlevel/acm/acm.c
@@
-68,8
+68,6
@@
static void *__getssid(int domid, uint32_t *buflen)
goto out2;
} else {
*buflen = SSID_BUFFER_SIZE;
- free(buf);
- buf = NULL;
goto out2;
}
out2: